$(function(){
  //get elet
  let $btn = $('input'),
      dalay = 6,
timer = null;


  //init status:disable,text,delay
  $btn.val('同意（'+dalay +'s）');
  $btn.attr('disabled','disabled');

  //start timer timeout buttont enable
  timer = setInterval(()=>{
    $btn.val('同意（'+ --dalay +'s）');
    if(dalay === 0){
      clearInterval(timer);
      $btn.val('同意');
      $btn.removeAttr('disabled');
    }
  },1000)
  //click event
  $btn.click(()=>{
    alert('点击按钮');
  })  
  //
});
